package al.xc.datasource.model;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * oooo
 * </p>
 *
 * @author ZYY
 * @since 2020-01-16
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("Account_Info")
public class AccountInfo extends Model<AccountInfo> {

    private static final long serialVersionUID=1L;

    @TableId(value = "ID", type = IdType.AUTO)
    private Integer id;

    /**
     * 用户唯一ID
     */
    @TableField("UserID")
    private String UserID;

    /**
     * 渠道
     */
    @TableField("Channel")
    private String Channel;

    /**
     * 帐号
     */
    @TableField("Account")
    private String Account;

    /**
     * 账号唯一ID
     */
    @TableField("OpenID")
    private String OpenID;

    /**
     * 密码
     */
    @TableField("MD5Password")
    private String MD5Password;

    /**
     * 昵称
     */
    @TableField("NickName")
    private String NickName;

    /**
     * 头像
     */
    @TableField("HeadHttp")
    private String HeadHttp;

    /**
     * 性别
     */
    @TableField("Sex")
    private Integer Sex;

    /**
     * 手机号
     */
    @TableField("TelPhone")
    private String TelPhone;

    @TableField("IsDel")
    private Boolean IsDel;

    /**
     * 添加时间
     */
    @TableField("AddTime")
    private LocalDateTime AddTime;

    /**
     * 添加用户ID
     */
    @TableField("AddUserID")
    private String AddUserID;

    /**
     * 最后修改时间
     */
    @TableField("UpTime")
    private LocalDateTime UpTime;

    /**
     * 最后修改用户ID
     */
    @TableField("UpUserID")
    private String UpUserID;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
